/* 
 * Copyright (c) 2002, Cameron Zemek
 * 
 * This file is part of JGrid.
 * 
 * JGrid is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * JGrid is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
package net.sf.jeppers.grid;

/**
 * <code>SpanModel</code> provides information about cell spans
 * for a grid of cells.
 * 
 * @author <a href="grom@capsicumcorp.com">Cameron Zemek</a>
 */
public interface SpanModel {
	public void addSpanModelListener(SpanModelListener listener);	
	public void removeSpanModelListener(SpanModelListener listener);
	
	/**
	 * Return the span over the cell at row, column.
	 */
	public CellSpan getSpanOver(int row, int column);
	
	/**
	 * Return true if the cell is part of a span with (rowCount > 1 || columnCount > 1)
	 */
	public boolean isCellSpan(int row, int column);	
	
	/**
	 * Return set of spans where (rowCount > 1 || columnCount > 1)
	 */
	public java.util.Iterator getSpanIterator();
}
